package com.sample.service.datastore.ex3;

import java.util.Iterator;

import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Query;

public class QuerySample {

    static DatastoreService store = DatastoreServiceFactory.getDatastoreService();

    public static Iterator<Entity> getEmployee() {

        return null;
    }

    public static void createEmployee(String name, String age, String birtyday) {

        Entity entity = new Entity("employee");
        entity.setProperty("name", name);
        entity.setProperty("age", age);
        entity.setProperty("birtyday", birtyday);
        store.put(entity);
    }
}
